﻿using System;
using EzDesk.Core.Model;
using EzDesk.DesktopClient.ServiceLocator.CoreClientLoginService;

namespace EzDesk.DesktopClient.ServiceLocator
{
    public class StubClientLoginService : ICoreClientLoginService
    {
        public UserProfile Login(string uid, string pwd)
        {
            if (string.IsNullOrEmpty(uid))
            {
                return null;
            }

            if (uid == "second")
                return new UserProfile
                           {
                               Id = Guid.NewGuid(),
                               HeadUrl = "Images\\headshot2.png",
                               Name = "黄冠",
                               UserCode = "2010102603",
                               DeptId = Guid.NewGuid(),
                               Dept = new Dept {DeptName = "场景宣传部"},
                               Position = new Position() {Description = "高级工程师"},
                               StatusId = Guid.Empty
                           };

            return new UserProfile
                       {
                           Id = Guid.NewGuid(),
                           HeadUrl = "Images\\headshot2.png",
                           Name = "青山老妖",
                           UserCode = "2010102601",
                           DeptId = Guid.NewGuid(),
                           Dept = new Dept { DeptName = "场景宣传部" },
                           Position = new Position() { Description = "高级工程师" },
                           StatusId = Guid.Empty
                       };
        }


        public SimpleUser[] GetUserNameForLogin(string inputString)
        {
            throw new NotImplementedException();
        }
    }
}